package com.psy.counseling.service.impl;

import com.psy.counseling.entity.Test;
import com.psy.counseling.entity.TestQuestion;
import com.psy.counseling.entity.Question;
import com.psy.counseling.mapper.TestMapper;
import com.psy.counseling.service.TestService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.psy.counseling.vo.TestVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 梁学儒
 * @since 2022-05-31
 */
@Service
public class TestServiceImpl extends ServiceImpl<TestMapper, Test> implements TestService {
    @Resource
    private TestMapper testMapper;

    public int insertQue(TestQuestion que) {
        return testMapper.insertQue(que);
    }

    @Override
    public List<TestVO> lists() {
        return testMapper.getLists();
    }

    public List<Question> selectQuestion(Integer t_id) {
        return testMapper.selectQue(t_id);
    }
}
